import request from '@/utils/request'

// 查询应急检查列表
export function listCheck(query) {
  return request({
    url: '/civil/emergencycheck/list',
    method: 'get',
    params: query
  })
}

// 查询应急检查详细
export function getCheck(emergencyCheckId) {
  return request({
    url: '/civil/emergencycheck/' + emergencyCheckId,
    method: 'get'
  })
}

// 新增应急检查
export function addCheck(data) {
  return request({
    url: '/civil/emergencycheck',
    method: 'post',
    data: data
  })
}

// 修改应急检查
export function updateCheck(data) {
  return request({
    url: '/civil/emergencycheck',
    method: 'put',
    data: data
  })
}

// 删除应急检查
export function delCheck(emergencyCheckId) {
  return request({
    url: '/civil/emergencycheck/' + emergencyCheckId,
    method: 'delete'
  })
}

//上传照片
export function pictureUp(data) {
  return request({
    url: '/civil/emergencycheck/upload',
    method: 'post',
    data: data
  })
}

